Canvas
Overview
The Workflow container. The Canvas is used for accessing properties and functions related to visualization and rendering.
- From version: 2020.20
Properties
height
height: number
The height of the Workflow's container. Use this to design your workflow UI.
width
width: number
The width of the Workflow's container. Use this to design your workflow UI.
Events
onSizeChanged
onSizeChanged ( newSize : { height : number; width : number }): void
This method will be triggered from the Workflow infrastructure when the window dimensions was changed. You should implement this function if you need to change and fit DOM Elements based on the window's dimensions .
Parameters
Returns void
Methods
addExternalStyleSheets
addExternalStyleSheets ( paths : string[]): void
Set external style sheets for the styling of the workflow. Used to add entire custom style sheet documents.
Parameters
Returns void
closeWindow
closeWindow (): void
this function closes the workflow window. You should use this function when you have a process that requires the window to be closed.
Returns void
hideSpinner
hideSpinner (): void
This function hides the spinner animation in the UI.
Returns void
refresh
refresh (): void
Refreshes the Workflow's window. The refresh function will retrigger all the flow's events and refetch the Workflow's data. Use this function when you need to retrieve the latest data or when you want to recall the flow's triggered events.
Returns void
showSpinner
showSpinner (): void
The function displays the UI spinner animation in the middle of the window and blocks all other user access to the UI elements. Call it when you have an asynchronous process and you want to force the user to wait.
Returns void